module dogre.internals.exceptionhandling;

import dogre.exception;
import std.stdio;

extern(C)
{
    void set_handler(void function(void*));
}

extern(C) void globalhandler(void* ptr)
{
    throw new OgreException(ptr);
}

static this()
{
    set_handler(&globalhandler);
}
